﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

public partial class JobSearch : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request.Params["cat"] != null)
        {
            string CatId = Request.Params["cat"];
            this.jobsearch1.SearchByCategoryId = Convert.ToInt32(CatId);
        }

    }

    protected void Page_Prerender(object sender, EventArgs e)
    {
        if (IsPostBack)
        {
            if ((advsearch1.SearchResult != null) && (advsearch1.SearchResult.Tables.Count > 0))
            {
                jobsearch1.SetSearch(advsearch1.SearchResult);
            }
        }
    }

}
